Public: Technology Reviews : How to fix the WebStart bug
This page last changed on Dec 21, 2008 by stepheneb.
There are two bugs in the Mac OS X implementation of WebStart. Bug #1 prevents it from updating the Java code stored in a computer. Bug #2 prevents it from running native installers. These bugs only occur in specific versions of Mac OS X and WebStart. Bug #1 SymptomsGenerally, the first time a computer tries to run any Java program from the Concord Consortium it will not have a problem. Subsequent times, however, may cause the JNLP launcher to freeze as it tries to update the code. Bug #2 SymptomsFixing the bugsThe easiest way to fix the Web Start bug is to run this small application: web-start-fix.jnlp. The application will check to determine whether the Web Start Fix needs to be applied, and will then apply it. An administrator password is required. To see what the program is doing under the hood, or to apply the Web Start Fix manually, read the directions below. Manually applying the Web start FixThese bugs are quite easy to fix, but currently they require copying-and-pasting code into an application called the Terminal, which may appear a little confusing to many users. We are working on an easier alternative. In the meantime using the Terminal is really not hard. Applying the fix will also require the user's password, which will be the same password that is normally required by any new application that is trying to install. Applying the fix is a two step process: finding what software versions you have and applying the fix. Step 1: Finding out your OS and Java versionsThe fix is different depending on your combination of Operating System and Java version. Find Mac Operating System versionClick on the Apple symbol at the top-left of your screen and select "About this Mac." You will see a window which will specify the version number, 10.4 or 10.5 (you can ignore the other numbers). Find Java version
Step 2a: Apply the Fix for Operating System 10.5Java version 1.6.0_07 or 1.5.0_16You don't need to apply the fix. Java version 1.5.0_13Copy the following lines of code, click on the Terminal application, and paste it in by pressing Apple-V on your keyboard. cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; sudo zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd - Press enter. You will then be prompted for your password, which will be the one you normally use to install programs. Note that when you start typing in your password, it will not look like you are typing anything. This can be very confusing... Press enter after you have typed in your password and you should get a message saying the change was successful. Step 2b: Apply the Fix for Operating System 10.4Java version 1.5.0_16Copy the following lines of code, click on the Terminal application, and paste it in by pressing Apple-V on your keyboard. cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; sudo zip -u "/Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; curl http://confluence.concord.org/download/attachments/10877/deploy-1.5.0_16-fix.jar > deploy-1.5.0_16-fix.jar ; unzip deploy-1.5.0_16-fix.jar ; sudo zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/deploy.jar" com/sun/deploy/config/MacOSXConfig.class ; rm com/sun/deploy/config/MacOSXConfig.class deploy-1.5.0_16-fix.jar ; cd - Press enter. You will then be prompted for your password, which will be the one you normally use to install programs. Note that when you start typing in your password, it will not look like you are typing anything. This can be very confusing... Press enter after you have typed in your password and you should get a message saying the change was successful. Java version 1.5.0_13Copy the following lines of code, click on the Terminal application, and paste it in by pressing Apple-V on your keyboard. cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; sudo zip -u "/Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd - Press enter. You will then be prompted for your password, which will be the one you normally use to install programs. Note that when you start typing in your password, it will not look like you are typing anything. This can be very confusing... Press enter after you have typed in your password and you should get a message saying the change was successful. Java version 1.5.0_06 or 1.5.0_07... you can click on this link: FixJavaWebStart.dmg. Select "open" or download and then double-click on the file. A window should then appear on your computer with an application called "Fix Java Web Start" Run the application, click on the button, and enter your password when prompted. |
Document generated by Confluence on Jan 27, 2014 16:56 |